package com.roncoo.pay.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 权限管理-操作员
 */
@TableName(value="PMS_OPERATOR")
public class PmsOperator extends Model<PmsOperator> {

	private static final long serialVersionUID = 1L;
	@TableField(value="login_name")
	private String loginName;// 登录名
	@TableField(value="login_pwd")
	private String loginPwd; // 登录密码
	@TableField(value="real_name")
	private String realName; // 姓名、
	@TableField(value="mobile_no")
	private String mobileNo; // 手机号
	private String type; // 操作员类型（admin:超级管理员，common:普通操作员），超级管理员由系统初始化时添加，不能删除
	private String salt;// 盐
	@TableId
	private Long id;// 主键ID.
	private Integer version = 0;// 版本号默认为0
	private String status;// 状态 PublicStatusEnum
	private String creater;// 创建人.
	@TableField(value="create_time")
	private Date createTime = new Date();// 创建时间.
	private String editor;// 修改人.
	@TableField(value="edit_time")
	private Date editTime;// 修改时间.
	private String remark;// 描述
	
	public PmsOperator() {

	}

	public String getCreater() {
		return creater;
	}

	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 认证加密的盐
	 * 
	 * @return
	 */
	public String getCredentialsSalt() {
		return loginName + salt;
	}

	public String getEditor() {
		return editor;
	}

	public Date getEditTime() {
		return editTime;
	}

	public Long getId() {
		return id;
	}

	/**
	 * 登录名
	 * @return
	 */
	public String getLoginName() {
		return loginName;
	}

	/**
	 * 登录密码
	 * 
	 * @return
	 */
	public String getLoginPwd() {
		return loginPwd;
	}

	/**
	 * 手机号
	 * 
	 * @return
	 */
	public String getMobileNo() {
		return mobileNo;
	}

	/**
	 * 姓名
	 * 
	 * @return
	 */
	public String getRealName() {
		return realName;
	}

	public String getRemark() {
		return remark;
	}

	public String getSalt() {
		return salt;
	}

	public String getStatus() {
		return status;
	}

	/**
	 * 操作员类型
	 * 
	 * @return
	 */
	public String getType() {
		return type;
	}

	public Integer getVersion() {
		return version;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}

	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 登录名
	 * 
	 * @return
	 */
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	/**
	 * 登录密码
	 * 
	 * @return
	 */
	public void setLoginPwd(String loginPwd) {
		this.loginPwd = loginPwd;
	}

	/**
	 * 手机号
	 * 
	 * @return
	 */
	public void setMobileNo(String mobileNo) {
		this.mobileNo = mobileNo;
	}

	/**
	 * 姓名
	 * 
	 * @return
	 */
	public void setRealName(String realName) {
		this.realName = realName;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * 操作员类型
	 * 
	 * @return
	 */
	public void setType(String type) {
		this.type = type;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}
}
